home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ssssuuuu((((1111MMMM)))) ssssuuuu((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- su - become superuser or another user
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ssssuuuu [ ---- ] [ name ] [ ----MMMM label ] [ ----CCCC capability set ] [ arg ... ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_u allows you to become another user without logging off. The default
- user _n_a_m_e is rrrrooooooootttt (that is, superuser).
-
- To use _s_u, you must supply the appropriate password (except as described
- below). If the password is correct, _s_u executes a new shell with the
- real and effective user ID set to that of the specified user. The new
- shell is the program optionally named in the shell field of the specified
- user's password file entry (see _p_a_s_s_w_d(4)), or /_b_i_n/_s_h if none is
- specified (see _s_h(1)). To restore normal user ID privileges, type an EOF
- (<(Ctrl-d>) to the new shell.
-
- _s_u prompts for a password if the specified user's account has one.
- However, _s_u does not prompt you if your user name is rrrrooooooootttt or your name is
- listed in the specified user's ._r_h_o_s_t_s file as:
-
- localhost _y_o_u_r__n_a_m_e
-
- (The hostname of llllooooccccaaaallllhhhhoooosssstttt is shorthand for the machine's name.)
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----CCCC <<<<ccccaaaappppaaaabbbbiiiilllliiiittttyyyy sssseeeetttt>>>>
- Execute the requested command with the specified _c_a_p_a_b_i_l_i_t_y _s_e_t .
- The requested user must be cleared to operate with the requested
- capability set. If capabilities are not configured on your system,
- this option is silently ignored.
-
- ----MMMM <<<<MMMMAAAACCCC llllaaaabbbbeeeellll>>>>
- Execute the requested command at the specified _l_a_b_e_l . The invoker
- of _s_u must be cleared to operate at the requested label. If that
- label is different than the user's current label then stdin, stdout,
- and stderr will be closed and the shell will be terminated. To
- prevent shells from terminating, a new window shell must be created
- at the new label. This is achieved by using the -c option (see
- examples). If MAC is not configured on your system (see sysconf(1)),
- this option is silently ignored.
-
- Any additional arguments given on the command line are passed to the
- program invoked as the shell. When using programs like _s_h(1), an _a_r_g of
- the form ----cccc _s_t_r_i_n_g executes _s_t_r_i_n_g via the shell and an arg of ----rrrr gives
- the user a restricted shell.
-
- _s_u reads /_e_t_c/_d_e_f_a_u_l_t/_s_u to determine default behavior. To change the
- defaults, the system administrator should edit this file. Recognized
- values are:
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ssssuuuu((((1111MMMM)))) ssssuuuu((((1111MMMM))))
-
-
-
- SULOG=_f_i_l_e # Use _f_i_l_e as the su log file.
- CONSOLE=_d_e_v_i_c_e # Log successful attempts to su root to _d_e_v_i_c_e.
- SUPATH=_p_a_t_h # Use _p_a_t_h as the PATH for root.
- PATH=_p_a_t_h # Use _p_a_t_h as the PATH for normal users.
- SYSLOG=FAIL # Log to syslog all failures (SYSLOG=FAIL)
- # or all successes and failures (SYSLOG=ALL).
-
- The following statements are true only if the optional program named in
- the shell field of the specified user's password file entry is like
- _s_h(1). If the first argument to _s_u is a ----, the environment is changed to
- what would be expected if the user actually logged in as the specified
- user. This is done by invoking the program used as the shell with an
- _a_r_g_0 value whose first character is ----, thus causing the system's profile
- (/_e_t_c/_p_r_o_f_i_l_e) and then the specified user's profile (._p_r_o_f_i_l_e in the new
- HOME directory) to be executed.
-
- Otherwise, the environment is passed along with the possible exception of
- $$$$PPPPAAAATTTTHHHH, which is set to
-
- /usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/etc:/usr/etc:/usr/bin/X11
-
- for rrrrooooooootttt. Additionally, environment variables of the form of those that
- are special to _r_l_d(1) are not passed to the user's program; that is,
- variable names beginning with either ____RRRRLLLLDDDD or LLLLDDDD____LLLLIIIIBBBBRRRRAAAARRRRYYYY. Note that if
- the optional program used as the shell is /_b_i_n/_s_h, the user's ._p_r_o_f_i_l_e
- can check _a_r_g_0 for ----sssshhhh or ----ssssuuuu to determine if it was invoked by _l_o_g_i_n(1)
- or _s_u, respectively. If the user's program is other than /_b_i_n/_s_h, then
- ._p_r_o_f_i_l_e is invoked with an _a_r_g_0 of ----_p_r_o_g_r_a_m by both _l_o_g_i_n and _s_u.
-
- All attempts to become another user using _s_u are logged in the log file
- /_v_a_r/_a_d_m/_s_u_l_o_g by default.
-
- SSSSHHHHAAAARRRREEEE IIIIIIII AAAACCCCTTTTIIIIOOOONNNNSSSS
- If _s_u is invoked with the ---- option, and the Share II system is installed
- and enabled, then the new shell executed by _s_u is attached to the lnode
- of the specified user.
-
- If the specified user is not rrrrooooooootttt, the lnode attachment may fail due to a
- non-existent lnode or reaching a memory or process limit, in which case
- an error message is printed and _s_u fails.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- To become user bbbbiiiinnnn while retaining your previously exported environment,
- execute:
-
- _ssss_uuuu _bbbb_iiii_nnnn
-
- To become user bbbbiiiinnnn but change the environment to what would be expected
- if bbbbiiiinnnn had originally logged in, execute:
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- ssssuuuu((((1111MMMM)))) ssssuuuu((((1111MMMM))))
-
-
-
- _ssss_uuuu _---- _bbbb_iiii_nnnn
-
- To execute _c_o_m_m_a_n_d with the temporary environment and permissions of user
- bbbbiiiinnnn, type:
-
- _ssss_uuuu _---- _bbbb_iiii_nnnn _----_cccc _""""_c_o_m_m_a_n_d _a_r_g_s_""""
-
- Under Trusted Irix, to create a new window shell for user bbbbiiiinnnn at a MAC
- label of dblow, execute:
-
- _ssss_uuuu _bbbb_iiii_nnnn _----_MMMM _dddd_bbbb_llll_oooo_wwww _----_cccc _xxxx_wwww_ssss_hhhh _&&&&
-
-
- FFFFIIIILLLLEEEESSSS
- /etc/passwd system's password file
- /etc/profile system's initialization script for /_b_i_n/_s_h users
- /etc/cshrc system's initialization script for /_b_i_n/_c_s_h users
- $HOME/.profile /_b_i_n/_s_h user's initialization script
- $HOME/.cshrc /_b_i_n/_c_s_h user's initialization script
- $HOME/.rhosts user's list of trusted users
- /var/adm/sulog log file
- /etc/default/su defaults file
- /etc/limconf compiled Share II configuration file (machine readable)
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- capability(4), env(1), login(1), rld(1), sh(1), cshrc(4), passwd(4),
- profile(4), rhosts(4), environ(5), share(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- su: uid _N: cannot attach to lnode - _r_e_a_s_o_n.
- The lnode attachment failed, so the shell was not executed.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-